package com.bosssoft.g1.mapper;

import com.bosssoft.g1.entity.User;
import com.bosssoft.g1.entity.UserRole;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface UserRoleMapper extends Mapper<UserRole>, MySqlMapper<UserRole> {
    void insertUser(Long userId, Long roleId);

    List<Long> getRoleIdsByUserId(Long userId);
}